package com.xinchao.ck_mips.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.xinchao.ck_mips.BuildConfig;
import com.xinchao.ck_mips.logic.PlayLogic;
import com.xinchao.ck_mips.utils.DeviceUtil;
import com.xinchao.ck_mips.utils.FileUtils;

import java.io.File;

/**
 * Created by wq on 2019/6/13.
 * 定时升级apk广播
 */
public class UpgradeAPKReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        if (action.equals("intent_alram_apk")) {
            //执行升级
            PlayLogic.getInstance().installAPK(context);
        }
    }
}
